@import "mixin.scss";
@import "var.scss";
// 表单button组
.btn-group {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    position: relative;
    .btn-sons {
        position: absolute;
        top: 42px;
        left: 0;
        width: 440px;
        padding: 5px 10px 15px 10px;
        background-color: #fff;
        box-shadow: 5px 5px 5px #e5e5e5;
        z-index: 9;
        .close {
            float: right;
            font-size: 12px;
            color: $fc-gray;
            margin-top: -4px;
            cursor: pointer;
        }
        .son-title {
            color: $fc-title-gray;
            background-color: #f8f8f8;
            padding-left: 10px;
            line-height: 30px;
            margin-top: 15px;
        }
        .son-list {
            padding: 0 10px;
            display: flex;
            flex-wrap: wrap;
        }
        .radio-wrap {
            position: relative;
            width: 90px;
            margin-top: 15px;
            .radio-hide {
                opacity: 0;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                &:checked {
                    &+.txt {
                        color: $fc-blue;
                    }
                }
            }
        }
    }
    .btn {
        width: 128px;
        line-height: 40px;
        text-align: center;
        color: $fc-base;
        border: 1px solid $border-gray;
        background-color: #fff;
        margin-right: 20px;
        cursor: pointer;
        &.active {
            border-color: $border-blue;
        }
    }
}

//顶部栏
.common_head-bg {
    background: $bg-f2;
    border-bottom: 1px solid $border-gray;
}

.common_head {
    background: $bg-f2;
    height: 30px;
    @include center;
    a,
    p {
        display: block;
        color: $fc-gray;
        font-size: 12px;
    }
    a:hover {
        color: $fc-blue;
    }
    .common_head-left {
        @include center-tb;
        p {
            margin-right: 26px;
        }
        a {
            padding: 0 14px;
        }
        .common_head-left-menu {
            position: relative;
            margin-left: 50px;
            p {
                line-height: 30px;
                margin: 0;
                padding: 0 10px;
                display: flex;
                justify-content: center;
                align-items: center;
                min-width: 80px;
                i {
                    margin-left: 8px;
                    transition: all 0.3s;
                }
            }
            .common_head-left-menu-sub {
                display: none;
                position: absolute;
                z-index: 100;
                top: 30px;
                width: 100%;
                padding-left: 10px;
                padding-top: 10px;
                box-sizing: border-box;
                background: $bg-white;
                border: 1px solid $border-gray;
                border-top: none;
                a {
                    margin-bottom: 8px;
                }
            }
            &:hover {
                background: $bg-white;
                p {
                    i {
                        transform: rotate(180deg);
                    }
                }
                .common_head-left-menu-sub {
                    display: block;
                }
            }
        }
    }
    .common_head-right {
        @include center-tb;
        a {
            padding-left: 14px;
            margin-left: 14px;
            border-left: 1px solid $fc-gray;
            &:first-child {
                border-left: none;
            }
        }
    }
}

//顶部搜索栏  全栈搜索
.common_head_search_global {
    display: flex;
    justify-content: space-between;
    position: relative;
    &>.logo {
        width: 240px;
        height: 126px;
        margin-right: 288px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        .logo-right {
            position: absolute;
            top: 52px;
            left: 232px;
        }
    }
    //商品详情页 logo右侧的信息
    &>.goods_details {
        position: absolute;
        top: 32px;
        left: 240px;
        width: 200px;
        height: 63px;
        border-left: 1px solid $border-gray;
        padding-left: 10px;
        &>p {
            font-size: 12px;
            color: $fc-base;
            padding-top: 12px;
            padding-bottom: 10px;
        }
        .left-title-oper {
            display: flex;
            &>p {
                padding: 0 8px;
                height: 20px;
                display: flex;
                align-items: center;
                background: #e2a574;
                line-height: 20px;
                font-size: 12px;
                color: $fc-white;
                border-radius: 10px;
                cursor: pointer;
                i {
                    margin-right: 4px;
                }
            }
            .left-title-oper-qq {
                cursor: pointer;
                margin-left: 10px;
            }
        }
    }
    &>.search {
        display: flex;
        margin-right: 30px;
        margin-top: 40px;
        height: 36px;
        .search-type {
            position: relative;
            &:hover {
                &>p {
                    border-bottom: 2px solid #f5f5f5;
                }
                &>.search-type-option {
                    display: flex;
                }
            }
            &>p {
                font-size: 14px;
                color: $fc-title-gray;
                width: 78px;
                height: 40px;
                box-sizing: border-box;
                line-height: 40px;
                display: flex;
                background: #f5f5f5;
                margin-right: -2px;
                border: 2px solid $border-blue;
                border-right: none;
                text-indent: 10px;
                cursor: pointer;
                i {
                    margin-left: 18px;
                    margin-top: 18px;
                }
            }
            &>.search-type-option {
                display: none;
                position: absolute;
                z-index: 100;
                top: 40px;
                left: 2px;
                flex-wrap: wrap;
                width: 304px;
                &>p {
                    width: 76px;
                    line-height: 40px;
                    text-indent: 10px;
                    background: #f5f5f5;
                    color: $fc-title-gray;
                    cursor: pointer;
                    &:hover {
                        background: $bg-blue;
                        color: $fc-white;
                    }
                }
                &>.cur {
                    background: $bg-blue;
                    color: $fc-white;
                }
            }
        }
        input {
            height: 40px;
            box-sizing: border-box;
            width: 373px;
            text-indent: 15px;
            color: $fc-base;
            font-size: 14px;
            border: 2px solid $border-blue;
            //border-bottom: 2px solid $border-blue;
        }
        .search-btn1 {
            margin-right: 24px;
            width: 78px;
            height: 40px;
            background: $bg-blue;
            color: $fc-white;
            font-size: 18px;
            font-weight: bold;
            border: none;
            cursor: pointer;
        }
        .search-btn2 {
            width: 120px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: #444;
            color: $fc-white;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
        }
    }
    &>.right {
        margin-top: 20px;
        p {
            font-size: 12px;
            color: $fc-gray;
            padding-bottom: 12px;
        }
        img {
            display: block;
            width: 58px;
            height: 58px;
            margin: 0 auto;
        }
    }
}

//顶部通用导航
.common_top_nav-bg {
    background: $bg-blue;
}

.common_top_nav {
    height: 40px;
    background: $bg-blue;
    &.nav1 {
        ul {
            padding: 0;
        }
        a {
            padding: 0 32px;
            &:hover {
                background-color: #5a72b7;
            }
        }
    }
    ul {
        display: flex;
        padding-left: 28px;
        box-sizing: border-box;
        a {
            display: block;
            line-height: 40px;
            padding: 0 42px;
            font-size: 16px;
            color: $fc-white;
            &:hover {
                background: $bg-blue-dark;
            }
        }
        .cur {
            background: $bg-blue-dark;
        }
    }
}

//底部通用页脚
.common_footer_top-bg {
    background: $bg-white;
    border-top: 1px solid $border-gray;
}

.common_footer_top {
    background: $bg-white;
    .common_footer_top-top {
        border-bottom: 1px solid $border-gray;
        display: flex;
        justify-content: space-around;
        padding: 40px 0px;
        margin-bottom: 38px;
        .common_footer_top-top-col {
            display: flex;
            .common_footer_top-top-col-img {
                width: 70px;
                height: 70px;
                margin-right: 20px;
                img {
                    display: block;
                }
            }
            .common_footer_top-top-col-text {
                h1 {
                    font-size: 20px;
                    color: #000;
                    padding-top: 12px;
                    padding-bottom: 10px;
                }
                p {
                    font-size: 14px;
                    color: $fc-title-gray;
                }
            }
        }
    }
    .common_footer_top-bottom {
        display: flex;
        justify-content: space-between;
        padding-bottom: 30px;
        .common_footer_top-bottom-nav {
            display: flex;
            dl {
                margin-right: 100px;
                dt {
                    display: flex;
                    font-size: 16px;
                    color: $fc-title-gray;
                    margin-bottom: 15px;
                    i {
                        margin-right: 6px;
                    }
                }
                dd {
                    margin-left: 26px;
                    font-size: 14px;
                    color: $fc-title-gray;
                    line-height: 1;
                    margin-bottom: 12px;
                    a {
                        display: block;
                        font-size: 14px;
                        color: $fc-title-gray;
                        line-height: 1;
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
        .common_footer_top-bottom-infor {
            h1 {
                font-size: 30px;
                color: $fc-title-gray;
                margin-bottom: 18px;
            }
            p {
                font-size: 12px;
                color: $fc-title-gray;
            }
        }
        .common_footer_top-bottom-third {
            display: flex;
            padding-left: 55px;
            border-left: 1px solid $border-gray;
            &>.left {
                margin-right: 18px;
                h1 {
                    font: size 16px;
                    color: $fc-title-gray;
                    margin-bottom: 20px;
                }
                .left-img {
                    width: 88px;
                    height: 88px;
                    img {
                        width: 100%;
                        display: block;
                    }
                }
            }
            &>.right {
                padding-top: 40px;
                .right-col {
                    margin-bottom: 12px;
                    width: 120px;
                    height: 30px;
                    line-height: 30px;
                    border-radius: 15px;
                    background: #f4f4f4;
                    display: flex;
                    font-size: 12px;
                    color: $fc-title-gray;
                    i {
                        margin-right: 6px;
                        margin-left: 26px;
                        margin-top: 6px;
                    }
                }
            }
        }
    }
}

.common_footer_btm-bg {
    background: #f2f2f2;
}

.common_footer_btm {
    background: #f2f2f2;
    padding-top: 44px;
    padding-bottom: 38px;
    p {
        font-size: 14px;
        color: $fc-title-gray;
        margin-bottom: 30px;
        text-align: center;
    }
    .common_footer_btm-nav {
        display: flex;
        justify-content: center;
        a {
            margin-right: 6px;
        }
    }
}

//登录 注册 页面的页脚
.common_login_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    ul {
        display: flex;
        margin-bottom: 16px;
        li,
        a {
            font-size: 12px;
            color: $fc-title-gray;
            line-height: 12px;
        }
        li {
            margin: 0 6px;
        }
    }
    p {
        font-size: 12px;
        color: $fc-title-gray;
    }
}

//路径导航
.common_crumb {
    padding-top: 30px;
    ul {
        display: flex;
        li {
            font-size: 12px;
            color: $fc-title-gray;
            line-height: 1;
            display: flex;
            align-items: center;
            a,
            span {
                font-size: 12px;
                color: $fc-title-gray;
                line-height: 1;
            }
            span {
                margin: 0 8px;
            }
            a {
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: block;
            }
        }
    }
    .qlist {
        display: flex;
        align-items: center;
        padding: 3px 7px;
        border: 1px solid $border-gray;
        cursor: pointer;
        margin-right: 12px;
        &:hover {
            border-color: $border-blue;
        }
        i {
            margin-left: 10px;
        }
    }
}

// 聚品牌-标题
.jpinpai-title {
    position: relative;
    text-align: center;
    margin: 40px 0 30px 0;
    &:before {
        position: absolute;
        content: '';
        background-color: $border-gray;
        height: 1px;
        width: 128px;
        left: 340px;
        top: 50%;
    }
    &:after {
        position: absolute;
        content: '';
        background-color: $border-gray;
        height: 1px;
        width: 128px;
        right: 340px;
        top: 50%;
    }
    .title-zh {
        font-size: 24px;
        color: $fc-base;
        margin-bottom: 15px;
    }
    .title-en {
        font-size: 16px;
        color: $fc-gray;
    }
}

// 产品列表-聚好款首页等页面
.base-pro-list {
    display: flex;
    flex-wrap: wrap;
    .base-item {
        width: 255px;
        border: 1px solid $border-gray;
        margin-right: 20px;
        margin-bottom: 20px;
        padding: 14px 14px 20px 14px;
        &:nth-child(4n) {
            margin-right: 0;
        }
        &:hover {
            border-color: $border-blue;
        }
        img {
            width: 255px;
            height: 255px;
            display: block;
        }
        .price-wrap {
            display: flex;
            justify-content: space-between;
            margin: 18px 0 12px 0;
            .price {
                font-size: 20px;
                color: #ff0036;
            }
            .unit {
                font-size: 14px;
            }
            .mincount {
                font-size: 14px;
                color: $fc-gray;
            }
        }
        .title {
            font-size: 14px;
            color: $fc-base;
        }
    }
}

// 分页
.page-bar {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: right;
    padding: 60px 0;
    li {
        list-style: none;
        display: inline-block;
        background-color: #fff;
        margin-left: 5px;
        &:first-child>a {
            margin-left: 0px;
        }
    }
    a {
        text-decoration: none;
        position: relative;
        float: left;
        padding: 0 15px;
        line-height: 38px;
        margin-left: -1px;
        color: $fc-base;
        font-size: 14px;
        cursor: pointer;
        &:hover {
            background-color: #eee;
        }
    }
    .active a {
        color: $fc-blue;
        cursor: default;
        background-color: #f4f4f4;
    }
    i {
        font-style: normal;
        color: #d44950;
        margin: 0px 4px;
        font-size: 12px;
    }
    .page-button-disabled {
        color: #ddd !important;
    }
    .page-info {
        line-height: 38px;
        vertical-align: 14px;
        background-color: transparent;
        margin-left: 28px;
        input {
            width: 36px;
            line-height: 38px;
            text-align: center;
            border: 1px solid $border-gray;
            margin: 0 6px;
        }
    }
}

// 产品列表-分类搜索
.shaixuan-bar {
    font-size: 12px;
    background-color: #fff;
    margin: 20px 0;
    .catetype-wrap {
        border: 1px solid $border-gray;
    }
    .catetype {
        &:not(:last-child) {
            border-bottom: 1px dashed $border-gray;
        }
        line-height: 46px;
        span {
            color: $fc-gray;
            width: 73px;
            display: inline-block;
            padding-left: 20px;
            background-color: #f6f6f6;
        }
        a {
            color: $fc-title-gray;
            padding: 0 20px;
            display: inline-block;
            text-align: center;
            cursor: pointer;
            &.active {
                //color: $fc-blue;
                color: #f00;
            }
            &:hover {
                //color: $fc-blue;
                color: #f00;
            }
        }
    }
    .fenlei {
        padding: 10px 0 10px 20px;
        margin-top: 10px;
        background-color: #f4f4f4;
        display: flex;
        position: relative;
        border: 1px solid $border-gray;
        .fl-item {
            background-color: #fff;
            width: 150px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 30px;
            margin-right: 20px;
            padding: 0 12px 0 16px;
        }
        .list-page {
            position: absolute;
            right: 10px;
            display: flex;
            align-items: center;
            .page-num {
                margin-right: 12px;
            }
            .arr-wrap {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 48px;
                height: 23px;
                border: 1px solid #e6e2e1;
                background-color: #fff;
                cursor: pointer;
                &.disabled {
                    background-color: #efefef;
                }
            }
        }
        .price-wrap {
            color: $fc-gray;
            margin-left: 50px;
            .price {
                padding: 0 10px;
                border: 1px solid $border-gray;
                background-color: #fff;
                display: inline-block;
                margin-right: 3px;
                input {
                    width: 36px;
                    border: 0;
                    line-height: 28px;
                }
            }
            .sure {
                line-height: 28px;
                border: 1px solid $border-gray;
                background-color: #fff;
                cursor: pointer;
                padding: 0 17px;
                color: $fc-gray;
                margin-left: 15px;
            }
            .qipi {
                color: $fc-base;
            }
        }
    }
}

// 聚品牌-品牌列表-分类搜索
.jpp-pp-shaixuan-bar {
    font-size: 12px;
    background-color: #fff;
    margin: 20px 0;
    .catetype-wrap {
        border: 1px solid $border-gray;
    }
    .catetype {
        display: flex;
        &:not(:last-child) {
            border-bottom: 1px dashed $border-gray;
        }
        line-height: 46px;
        .renqun-wrap {
            padding-left: 20px;
            input {
                width: 68px;
                line-height: 23px;
                border: 1px solid $border-gray;
                padding: 0 7px;
            }
            span {
                margin: 0 7px;
            }
        }
        .date-wrap {
            padding-left: 20px;
            input {
                width: 32%;
                font-size: 12px;
            }
        }
        button {
            line-height: 23px;
            border: 1px solid $border-gray;
            background-color: #f8f8f8;
            cursor: pointer;
            padding: 0 12px;
            color: $fc-gray;
            margin-left: 15px;
        }
        .biaoqian {
            color: $fc-gray;
            width: 73px;
            display: inline-block;
            padding-left: 20px;
            background-color: #f6f6f6;
        }
        a {
            color: $fc-title-gray;
            padding: 0 20px;
            display: inline-block;
            text-align: center;
            cursor: pointer;
            &.active {
                //color: $fc-blue;
                color: #f00;
            }
            &:hover {
                //color: $fc-blue;
                color: #f00;
            }
        }
        .el-input__inner {
            border-radius: 0;
            border-color: $border-gray;
            height: 25px;
            padding: 0 6px;
        }
        .el-date-editor .el-range__icon {
            line-height: 19px;
        }
        .el-date-editor .el-range-separator {
            line-height: 19px;
        }
    }
}

//上传图片
.common_upimg-box {
    display: flex;
    margin-right: -10px;
    flex-wrap: wrap;
    .common_upimg {
        width: 80px;
        height: 80px;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        margin-right: 10px;
        margin-bottom: 10px;
        &:hover {
            border: 1px solid $border-blue;
        }
        &>img {
            width: 100%;
        }
        &>input {
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            position: absolute;
            top: 0px;
            left: 0px;
        }
        .common_upimg-remove {
            cursor: pointer;
            position: absolute;
            top: 5px;
            right: 5px;
            width: 20px;
            height: 20px;
            background: #ff0036;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            &>div {
                width: 70%;
                height: 2px;
                background: #fff;
            }
        }
    }
}

// 文章详情页
.article-head {
    background-color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid $border-gray;
    padding: 30px 0;
    .left-wrap {
        display: flex;
        align-items: center;
        margin-left: 30px;
    }
    .toux {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        margin-right: 16px;
    }
    .name {
        font-size: 16px;
        color: $fc-base;
        margin-bottom: 16px;
    }
    .date {
        font-size: 12px;
        color: $fc-gray;
        display: flex;
        align-items: center;
        i {
            margin-right: 8px;
        }
    }
    .blank {
        display: inline-block;
        width: 20px;
    }
    button {
        margin-right: 30px;
        border: 1px solid $border-gray;
        border-radius: 5px;
        background-color: #fff;
        padding: 12px 30px;
        font-size: 12px;
    }
}

.article-bottom {
    padding: 0 85px 60px 85px;
    background-color: #fff;
    .article-title {
        text-align: center;
        font-size: 24px;
        color: $fc-base;
        padding: 30px 0;
    }
    .article-author {
        text-align: center;
        font-size: 12px;
        color: $fc-gray;
        margin-bottom: 30px;
    }
    .article-location {
        font-size: 12px;
        color: $fc-gray;
        margin-top: 40px;
        display: flex;
        align-items: center;
        i {
            margin-right: 8px;
        }
    }
    .baoming {
        @include btnblue(180px, 54px);
        margin: 60px auto 0 auto;
    }
    .zan {
        @include btnblue(120px, 72px);
        margin: 60px auto 0 auto;
        border-radius: 35px;
        cursor: pointer;
        i {
            margin-bottom: 10px;
        }
    }
}

.article-comment {
    background-color: #fff;
    .pinglun {
        padding: 30px;
        border-bottom: 1px solid $border-gray;
        textarea {
            width: 1100px;
            height: 30px;
            background-color: #f4f4f4;
            border: 1px solid $border-gray;
            padding: 12px 20px;
            line-height: 30px;
            font-size: 14px;
            color: $fc-base;
            resize: none;
        }
        .btn-wrap {
            text-align: right;
        }
        button {
            padding: 12px 30px;
            background-color: #f4f4f4;
            font-size: 14px;
            color: $fc-gray;
            margin-top: 20px;
        }
    }
    .comment-list {
        li {
            display: flex;
            padding: 30px;
            &:not(:last-child) {
                border-bottom: 1px solid $border-gray;
            }
            .toux {
                width: 48px;
                height: 48px;
                border-radius: 50%;
            }
            .right-wrap {
                margin-left: 20px;
            }
            .nickname {
                font-size: 14px;
                color: $fc-base;
            }
            .time {
                font-size: 12px;
                color: $fc-gray;
            }
            .content {
                font-size: 12px;
                color: $fc-title-gray;
                margin-top: 15px;
            }
        }
    }
    .comment-count {
        font-size: 14px;
        color: $fc-base;
        padding: 30px 30px 10px 30px;
    }
    .comment-more {
        text-align: center;
        font-size: 14px;
        color: $fc-blue;
        border-top: 1px solid $border-gray;
        line-height: 70px;
        cursor: pointer;
    }
}

.acticle-page {
    border-top: 1px solid $border-gray;
    padding: 10px 0;
    a {
        color: $fc-title-gray;
        font-size: 14px;
    }
    .btn {
        background-color: #f0f0f0;
        color: $fc-base;
        font-size: 14px;
        padding: 13px 40px;
        display: inline-block;
        margin: 10px 10px 10px 0;
    }
}

//品牌页面通用顶部
.pinpai-header {
    border-top: 1px solid $border-gray;
    .pinpai-header-top {
        display: flex;
        justify-content: space-between;
        padding: 22px 0;
        .left-wrap {
            display: flex;
            color: $fc-base;
            .ppinfo {
                margin-left: 20px;
            }
            .logo {
                width: 86px;
                height: 86px;
                border: 2px solid #ebebeb;
                border-radius: 50%;
            }
            .ppname {
                font-size: 22px;
                margin-top: 7px;
                margin-bottom: 5px;
            }
            .date {
                font-size: 14px;
                line-height: 24px;
            }
            .qyname {
                @extend .date;
            }
        }
        .right-wrap {
            display: flex;
            align-items: center;
            font-size: 14px;
            color: $fc-title-gray;
            .i-wrap {
                margin-right: 20px;
                cursor: pointer;
            }
            i {
                display: inline-block;
                margin-bottom: -2px;
                margin-right: 8px;
            }
            .btn {
                font-size: 16px;
                color: $fc-blue;
                padding: 10px 25px;
                border: 2px solid $border-blue;
                background-color: transparent;
                color: $fc-blue;
                margin-left: 28px;
                &:hover {
                    background-color: $bg-blue;
                    color: #fff;
                }
            }
        }
    }
}

//聚好款_商品详情 顶部导航栏
.common_jhaokuan_goods_details_topnav-bg {
    height: 36px;
    background: #454545;
    min-width: 1200px;
    ul {
        display: flex;
        margin-left: 90px;
        li {
            a {
                display: block;
                font-size: 12px;
                color: $fc-white;
                line-height: 36px;
                padding: 0 10px;
                margin-right: 45px;
                &:hover {
                    background: #262626;
                }
            }
        }
    }
}